html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

.bx {
    box-shadow: var(--mdui-elevation-level2);
    border-radius: 10px;
    margin: 5px 8px;
    background-color: rgb(var(--mdui-color-background));
    overflow: hidden;
}

.br {
    border-radius: 100px;
    overflow: hidden;
}

.mr {
    margin: 5px;
}

.mr-x {
    margin: 0 5px;
}

.mr-y {
    margin: 5px 0;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main .bx .title {
    margin-left: 15px;
}

body {
    margin: 0;
    font-family: 'LXGW ZhenKai';
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #f9f9f9;
}

::-webkit-scrollbar-track {
    background: #e1e1e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fonts.woff2') format('woff2');
}

@font-face{font-family:'LXGW ZhenKai';src:url('../fonts/LXGWZhenKai.woff2') format('woff2'),url('../fonts/LXGWZhenKai.woff') format('woff');font-weight: normal;font-style: normal;font-display: swap}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

body > .header {
    position: fixed;
    top: 0px;
    left: 0px;
    box-shadow: var(--mdui-elevation-level2);
    width: 100%;
    z-index: 999;
    filter: brightness(1.1);
}

.header .search {
    position: relative;
    top: -8px;
    border-radius: 40px;
    overflow: hidden
}

.header .nat-icon {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    font-size: 35px;
    line-height: 40px;
}

.header .theme {
    margin-right: 20px;
}

.main {
    position: relative;
    top: 70px;
}

.main .devices {
    position: relative;
    width: 100%;
}

.main .devices mdui-button.reboot-server {
    position: absolute;
    right: 20px;
    top: 12px;
}

.main .devices mdui-checkbox.auto-start {
    position: absolute;
    right: 132px;
    top: 12px;
}

.main .options {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.header .search {
    width: 500px;
}

.main .device-list {
    padding: 5px;
    min-height: 320px;
    max-height: 450px;
    overflow-y: auto;
}

.main .start-option {
    padding: 5px;
    overflow-y: auto;
}

.main .start-option .checkbox {
    margin-top: 4px;
}

@media only screen and (min-width:820px) {
    .main {
        display: flex;
        justify-content: center;
    }
    .main .devices {
        width: 420px;
    }
    .main .options {
        display: grid;
        width: 450px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
}